1. /* srfrrmul.cpp by K.Tsuru */
  2. // function ID = 812 BRADIX
  3. /*********************************
  4. SRational class
  5. oparator x*y
  6. (x.num/x.den)*(y.num/y.den)
  7. **********************************/
  8. #ifndef SN_H
  9. #include "sn.h"
  10. #endif
  11. SRational RRMult(const SRational& x, const SRational& y){
  12. SRational z; // z.reduceDone = FALSE;
  13. if(x.Sign(812) == 0){
  14. z.SetZero(); return z;
  15. }
  16. z.num = x.num*y.num; z.den = x.den*y.den;
  17. z.reduce(false);
  18. return z;
  19. }

srfrrmul.cpp : last modifiled at 2016/06/26 16:27:29(470 bytes)
created at 2016/06/26 15:57:35
The creation time of this html file is 2016/09/18 20:28:04 (Sun Sep 18 20:28:04 2016).